//
//  WBSearchView.m
//  sinaWeibo
//
//  Created by 李江波 on 2016/11/14.
//  Copyright © 2016年 lijiangbo. All rights reserved.
//

#import "WBSearchView.h"

@implementation WBSearchView

+(instancetype)searchButton{

    UINib *nib = [UINib nibWithNibName:@"WBSearchBtn" bundle:nil];
    return [[nib instantiateWithOwner:nil options:nil] firstObject];
}

-(void)awakeFromNib{

    [super awakeFromNib];
    
    //设置宽度
    CGRect btnBounds = self.bounds;
    btnBounds.size.width = [UIScreen mainScreen].bounds.size.width;
    self.bounds = btnBounds;
    
}

-(void)setCornerRodius:(CGFloat)cornerRodius{

    if (cornerRodius < 0) {
        return;
    }
    
    self.layer.cornerRadius = cornerRodius;
    
    self.layer.masksToBounds = YES;
}


@end
